package com.dongdongshop.dao;


import com.dongdongshop.pojo.content.TbContent;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

public interface ContentRepository extends JpaRepository<TbContent,Long>, JpaSpecificationExecutor<TbContent> {

    List<TbContent> findByCategoryIdAndStatusEquals(Long categoryId, String status);
}
